package sjtu.ist.warehouse4ws.model;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

/**
 * ShiroRole entity. @author MyEclipse Persistence Tools
 */

public class ShiroRole implements java.io.Serializable {

	// Fields


	private Integer shiroRoleId;
	private String rolename;
	private String description;
	private Set<ShiroPermission> shiroPermissions = new HashSet<ShiroPermission>();
	private Set <ShiroUser> shiroUser = new HashSet<ShiroUser>();

	// Constructors

	/** default constructor */
	public ShiroRole() {
	}

	/** full constructor */
	public ShiroRole(String rolename, String description,
			Set shiroPermissions, Set shiroUserRoles) {
		this.rolename = rolename;
		this.description = description;
		this.shiroPermissions = shiroPermissions;
		this.shiroUser = shiroUserRoles;
	}
	public ShiroRole(String rolename, String description) {
		this.rolename = rolename;
		this.description = description;

	}
	// Property accessors

	public Integer getShiroRoleId() {
		return this.shiroRoleId;
	}

	public void setShiroRoleId(Integer shiroRoleId) {
		this.shiroRoleId = shiroRoleId;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}




	public Set<ShiroUser> getShiroUser() {
		return shiroUser;
	}

	public void setShiroUser(Set<ShiroUser> shiroUser) {
		this.shiroUser = shiroUser;
	}

	public Set<ShiroPermission> getShiroPermissions() {
		return shiroPermissions;
	}

	public void setShiroPermissions(Set<ShiroPermission> shiroPermissions) {
		this.shiroPermissions = shiroPermissions;
	}



}